import React from 'react';
import './style.css';
import 'antd/dist/antd.css';
import {HashRouter} from "react-router-dom";
import {renderRoutes} from 'react-router-config';
import {ProRouter as routes} from "./router";
import { Provider } from "react-redux";
import store from './store';

function App(props: any) {
    return (
        <Provider store={store}>
            <HashRouter>
                {
                    renderRoutes(routes)
                }
            </HashRouter>
        </Provider>

    );
}

export default App;
